package com.accp.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.accp.dao.RoomMapper;
import com.accp.pojo.Room;
import com.accp.service.RoomService;



@Service("roomService")
public class RoomServiceImpl  implements  RoomService{

	@Autowired
	private RoomMapper roomMapper;
	
	
	@Override
	public int deleteByPrimaryKey(Integer roomid) {
		return roomMapper.deleteByPrimaryKey(roomid);
	}

	@Override
	public int insert(Room record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(Room record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Room selectByPrimaryKey(Integer roomid) {
		// TODO Auto-generated method stub
		return roomMapper.selectByPrimaryKey(roomid);
	}

	@Override
	public int updateByPrimaryKeySelective(Room record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKey(Room record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<Room> getAllRoom() {
		// TODO Auto-generated method stub
		return roomMapper.getAllRoom();
	}

	@Override
	public List<Room> getByState(Integer roomState) {
		// TODO Auto-generated method stub
		return roomMapper.getByState(roomState);
	} 
	
	
	
	
}
